package com.atguigu.day02;

public class Test9 {

    public static void main(String[] args) {
        int year = 2018;
        //   System.out.println(year+((year%4==0 && year%100!=0||year%400==0)?"是":"不是"+"闰年"));
        boolean result = year % 4 == 0 && year % 100 != 0 || year % 400 == 0;
        System.out.println(year + (result ? "是闰年" : "不是闰年"));
    }
}
